package com.yida.system.api.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description:
 * @Author: PPV
 * @Date: 2023-04-13
 */
@ApiModel("绑定小区请求")
public class BindCommunityRequest {

    @NotNull(message = "用户id不用为空")
    @ApiModelProperty("用户id")
    private Long userId;

    @NotEmpty(message = "绑定小区信息集合不能为空")
    @ApiModelProperty("要绑定的小区信息集合")
    private List<BindCommunityInfo> infos;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public List<BindCommunityInfo> getInfos() {
        return infos;
    }

    public void setInfos(List<BindCommunityInfo> infos) {
        this.infos = infos;
    }
}
